package util.AST;

import java.util.ArrayList;

import util.NodeElsif;

public class ASTcomandCond extends ASTcomando {

	private ASTexpRel condicaoIf;
	private ArrayList<ASTcomando> comandosIf;
	private ArrayList<NodeElsif> elsifs;
	private ArrayList<ASTcomando> comandosElse;
	
	public ASTcomandCond(ASTexpRel condicaoIf, ArrayList<ASTcomando> comandosIf,
			ArrayList<NodeElsif> elsifs, ArrayList<ASTcomando> comandosElse){
		
		comandosIf = new ArrayList<ASTcomando>();
		elsifs = new ArrayList<NodeElsif>();
		comandosElse = new ArrayList<ASTcomando>();
		
		this.condicaoIf = condicaoIf;
		this.comandosIf = comandosIf;
		this.elsifs = elsifs;
		this.comandosElse = comandosElse;
	}
		
	
	public ASTexpRel getcondicaoIf() {
		return condicaoIf;
	}

	public void setcondicaoIf(ASTexpRel condicaoIf) {
		this.condicaoIf = condicaoIf;
	}

	public ArrayList<ASTcomando> getComandosIf() {
		return comandosIf;
	}

	public void setComandosIf(ArrayList<ASTcomando> comandosIf) {
		this.comandosIf = comandosIf;
	}

	public ArrayList<NodeElsif> getElsifs() {
		return elsifs;
	}

	public void setElsifs(ArrayList<NodeElsif> elsifs) {
		this.elsifs = elsifs;
	}

	public ArrayList<ASTcomando> getComandosElse() {
		return comandosElse;
	}

	public void setComandosElse(ArrayList<ASTcomando> comandosElse) {
		this.comandosElse = comandosElse;
	}

	@Override
	public String toString(int level) {
		// TODO Auto-generated method stub
		return null;
	}

}
